<template>
  <div class="header">
    <div class="left">后台管理</div>
    <div class="mid"></div>
    <div class="right">
      <el-dropdown>
        <span class="el-dropdown-link">
          张三
          <el-icon class="el-icon--right">
            <arrow-down />
          </el-icon>
        </span>
        <template #dropdown>
          <el-dropdown-menu>
            <el-dropdown-item> 个人信息</el-dropdown-item>
            <el-dropdown-item>退出系统</el-dropdown-item>
          </el-dropdown-menu>
        </template>
      </el-dropdown>
    </div>

  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  setup() {
    return {}
  },
})
</script>

<style lang="less" scoped>
.header {
  height: 50px;
  line-height: 50px;
  border-bottom: 1px solid #ccc;
  display: flex;

  .left {
    padding-left: 20px;
    width: 200px;
    font-weight: bold;
    color: dodgerblue;
  }
  .mid {
    flex: 1;
  }
  .right {
    width: 100px;
  }
}
</style>
